package com.ruoyi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.domain.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {

    /**
     * 按照商家的电话来进行查询
     * @param phone
     * @return
     */

    public Business selectByPhone(@Param("phone") String phone);


    /**
     * 按照商家的id进行查询
     * @param id
     * @return
     */
    public Business selectById(@Param("id")int id);



}
